<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="Jackie Do" />
    
    <style type="text/css">
        table {
            border-collapse: collapse;
        }
        td {
            border: 1px solid gray;
            padding: 3px;
        }
        .td-title {
            width: 100px;
        }
    </style>

	<title>PHP Statement</title>
</head>

<body>

    <table>
        <tr>
            <?php
                for ($a=2; $a<=10; $a++) {
                    echo '<td class="td-title">Bảng ' .$a. '</td>';
                }
            ?>
        </tr>
        <tr>
            <?php
                for ($a=2; $a<=10; $a++) {
                    echo '<td>';
                    for ($b=1; $b<=10; $b++) {
                        echo $a. ' x ' .$b. ' = ' .$a*$b. '<br />';
                    }
                    echo '</td>';
                }
            ?>
        </tr>
    </table>

</body>
</html>